package xuecheng.framework.exception;

import xuecheng.framework.model.response.ResultCode;

/**
 * 自定义类型异常
 *
 * @author Simon
 */
public class CustomException extends RuntimeException {

    //错误代码
    ResultCode resultCode;

    public CustomException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
    public ResultCode getResultCode(){
        return resultCode;
    }
}
